package com.mjlf.shareresource.web.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * @ClassName Hello
 * @Author mjlft
 * @Date 2019/4/19 22:32
 * @Version 1.0
 * @Description TODO
 */
@Controller
public class Hello {

    @RequestMapping("/helloFtl")
    public String helloFtl(){
        System.out.println("yes");
        Map<String,Object> map = new HashMap<>();
        map.put("hello","from TemplateController.helloFtl");
        return "html";
    }
    @GetMapping("/hello")
    public String hello(){
        return "yes";
    }

}
